import request from "../utils/request.js";

export async function addInfoApi(info) {
    return await request.post('/api/info/add', info)
}


export async function updateInfoApi(info) {
    return await request.post('/api/info/update', info)
}

export async function deleteInfoApi(id) {
    return await request.post('/api/info/delete', {}, {
        params: {
            id: id
        }
    })
}


export async function getAllInfoApi() {
    return await request.get('/api/info/getAll',)
}



